<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 26826
  Date: 2022/5/16
  Time: 10:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title></title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/pintuer.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/admin.css">
    <script src="${pageContext.request.contextPath}/js/jquery.js"></script>
    <script src="${pageContext.request.contextPath}/js/pintuer.js"></script>
</head>
<body>
<div class="panel admin-panel margin-top">
    <div class="panel-head" id="add"><strong><span class="icon-plus-square-o"></span>添加身份证</strong></div>
    <div class="body-content">
        <form method="post" class="form-x">
            <div class="form-group">
                <div class="label" style="width: 100px">
                    <label>请输入身份证</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" id="idcard_num" name="idcard_num"/>
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label" style="width: 100px">
                    <label>请选择开始日期</label>
                </div>
                <div class="field">
                    <input type="date" id="idcard_starttime" class="input w50" name="idcard_starttime"/>
                </div>
            </div>
            <div class="form-group">
                <div class="label" style="width: 100px">
                    <label>请选择结束日期</label>
                </div>
                <div class="field">
                    <input type="date" id="idcard_endtime" class="input w50" name="idcard_endtime"/>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label></label>
                </div>
                <div class="field">
                    <a  class="button border-main icon-check-square" onclick="idcard()"> 确定</a>
                </div>
            </div>
        </form>
    </div>
</div>
<script>
    function idcard(){
        var idcard_num = $("#idcard_num").val()
        var idcard_starttime = $("#idcard_starttime").val()
        var idcard_endtime = $("#idcard_endtime").val()

        console.log(idcard_num)
        console.log(idcard_starttime)
        console.log(idcard_endtime)
        window.parent.$("[name='card_person']").val(idcard_num)
        window.parent.$("[name='card_person']").attr("idcard_starttime",idcard_starttime)
        window.parent.$("[name='card_person']").attr("idcard_endtime",idcard_endtime)
        window.parent.$("#card_list").css("display","none");
    }
</script>
</body></html>